package cll;

import static cll.Parameters.qtt_chemok_diff_SC;
import static cll.Parameters.tailleGC;
import static cll.Parameters.rayonSC;
import static java.lang.Math.random;

public class StromalCell extends Cell{

	
	static double chemokine = qtt_chemok_diff_SC;
			
	public StromalCell(Environment envt){
		environment = envt;
		type = Type.StromalCell;
		antigen = Antigen.getRandomAntigen();
		//nb_sites = 100;
		switch((int)(Math.random()*4)){
		case 0 : positionspeed = new PositionSpeed(2, random()*100+100,0);break;
		case 1 : positionspeed = new PositionSpeed(tailleGC-2, random()*100+100,0);break;
		case 2 : positionspeed = new PositionSpeed(random()*100+100,2 ,0);break;
		case 3 : positionspeed = new PositionSpeed(random()*100+100, tailleGC-2,0);break;
		}
		rayon =rayonSC;
	}

	public void changeDirection() {
		
	}

	public Cell transforme() {
		// TODO Auto-generated method stub
		return new DeadCell();
	}

	@Override
	public void apoptosis() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void dealWithChemokine() {
		Place place = environment.getPlace(positionspeed);
		place.addChemokine12(chemokine);
		
	}


	

	@Override
	public void transition() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Cell Reproduction() {
		// TODO Auto-generated method stub
		return new DeadCell();
	}

	@Override
	public void interaction(Cell c) {
		// TODO Auto-generated method stub
		
	}
}
